package com.aos.erp.manager.model.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: erp
 * @description: 岗位职责
 * @author: tanzhiyu
 * @create: 2018-11-05 10:08
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("岗位职责")
@TableName("t_sys_position")
public class Position implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "岗位ID", hidden = true)
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty("部门ID")
    @TableField("dep_id")
    private Long depId;

    @ApiModelProperty("职位代码")
    @TableField("code")
    private String code;

    @ApiModelProperty("职位名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("职位描述")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建时间", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("created")
    private Date created;

    @ApiModelProperty(value = "修改时间",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("updated")
    private Date  updated;

    @ApiModelProperty(value = "是否删除  （0：否    1：是）",hidden=true)
    @TableField("is_del")
    private Integer isDel;

    @ApiModelProperty(value = "操作人ID",hidden=true)
    @TableField("operator_id")
    private Long operatorId;

}
